﻿@model Web.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
}

<h2>Iniciar sesión</h2>
<p>
    Ingerese su nombre de usuario y contraseña.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")

@using (Html.BeginForm())
{
    <div>
        <fieldset>
            <legend>Informacion de su cuenta</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="checkbox">
                <label class="control-label">
                @Html.CheckBoxFor(m => m.RememberMe, new { @class = "checkbox" })
                Recordarme
                </label>
            </div>
            <p>
                <input class="btn btn-success" type="submit" value="Ingresar" />
            </p>
        </fieldset>
    </div>
}
